From: Rui Matos Date: Sun, 7 Apr 2013 14:42:42 +0000 (+0200) Subject: AppSwitcherPopup: Activate only the selected window if any X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4360 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2499f2ed8098110845a041f7783e51e6740ad497;p=gnome-shell.git AppSwitcherPopup: Activate only the selected window if any If there's an explicitly selected window thumbnail we should bring up only that particular window instead of all the application's windows. https://bugzilla.gnome.org/show_bug.cgi?id=697480 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 4b62f5c71..435e66f5e 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -233,8 +233,10 @@ const AppSwitcherPopup = new Lang.Class({ _finish : function(timestamp) { let appIcon = this._items[this._selectedIndex]; - let window = this._currentWindow > 0 ? this._currentWindow : 0; - appIcon.app.activate_window(appIcon.cachedWindows[window], timestamp); + if (this._currentWindow < 0) + appIcon.app.activate_full(-1, timestamp); + else + Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp); this.parent(); },